const indexLocation=function(target){
    // console.log(target)

    let targetHerf = target.href;
    $("#myiframe").attr("src",targetHerf);

    return false;


}

$(function(){
    $.ajax({
        url:"/api/nginxteacherlogin"
    }).done(function (rs){
        if(rs.code >= 0){
            //成功
            leadTable();
        }else {
            window.location.href="/user"
        }
    });
})